package com.snake.user.service;


import com.snake.user.model.User;
import com.snake.user.repository.UserRepository;
import com.snake.user.repository.UserRepositoryImpl;

/**
 * @author yangxs
 */
public class UserServiceImpl implements UserService {

    private UserRepository userRepository;

    public UserServiceImpl(){
        userRepository = new UserRepositoryImpl();
    }

    @Override
    public int save(User user) {
        return userRepository.save(user);
    }
}
